export default {
  getMore20Student(state) {
    return state.students.filter(s => s.age > 20)
  },
  more20StuLength(state, getter) {
    return getter.getMore20Student.length;
  },
  moreAgeStu(state) {
    return function (age){
      return state.students.filter(s => s.age > age)
    }
  }
}
